function frac (n)
	if n==0 then
		return 1
	else
		return n*frac(n-1)
	end
end

print("enter an number")
a=io.read("*number")
print(frac(a))
